package org.apache.lucene;

import java.io.IOException;

import org.apache.lucene.search.Collector;

public interface Scorable<T> {
	
	  /** Returns the score of the current document matching the query.
	   * Initially invalid, until {@link #nextDoc()} or {@link #advance(int)}
	   * is called the first time, or when called from within
	   * {@link Collector#collect}.
	   */
	  public float score() throws IOException;
	  
}
